<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>my97datepicker</title>
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>

</head>
<body>

<input id="d11" type="text" onClick="WdatePicker()"/>


<input readonly id="searchDate" onclick="WdatePicker({dateFmt:'yyyy-MM'})" />


<input type="text" class="Wdate" onclick="WdatePicker({onpicking:function(dp){sayHello(this,dp);}})" readonly="readonly" />

<script>
    function sayHello(obj,dp){
        var date=dp.cal.getNewDateStr();
        var $obj=$(obj);
        var name=$obj.val();
        alert('您好：'+name+'今天是：'+date)
    }
</script>
</body>
</html>